package cn.itcast.service.impl;

import cn.itcast.dao.CheckAddressDao;
import cn.itcast.pojo.Address;
import cn.itcast.service.CheckAddressService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author coolbook
 * @ClassName CheckAddressServiceImpl
 * @Description TODO
 * @Date 13:53 2021/11/16
 * @Version 1.0
 */
@Service
public class CheckAddressServiceImpl implements CheckAddressService {
    @Autowired
    private CheckAddressDao checkAddressDao;

    /**
     * 查询院区地址
     * @return
     */
    @Override
    public List<Address> findAll() {
        return this.checkAddressDao.findAll();
    }

    /**
     * 根据Id查询
     * @param addressId
     * @return
     */
    @Override
    public Address findById(Integer addressId) {
        return this.checkAddressDao.findById(addressId);
    }
}
